<div id="center_right">
  <div class="addLog">
    <% remote_form_for @article,
      :update => "logs_replace",
      :url => valleyers_show_logs_show_articles_url,
      :method => :post,
      :before => "copy_value_from_fckeditor_to('article__content_editor','article__content_editor');",
      :html => {
      :id => "new_article_form"
    } do |f| %>
      <div class="title">
        <p>标题&nbsp;:&nbsp;</p><%= f.text_field :title %>
        <p>分类&nbsp;:&nbsp;</p>
        <%= text_field_with_auto_complete("document_type",
          :name,{
          }, {
            :url => auto_complete_document_types_url,
            :with => "'&name=' + $F('document_type_name') ",
            :method =>:get,
            :skip_style => true
          }) %><%#= text_field_tag :documet_name, nil, :class => "classify" %>
        <!--link_to "读取草稿" -->
      </div>
    <%#= f.text_area :content, :class => :ckeditor, :id => :editor1 %>
      <%= fckeditor_textarea("article", "content", :toolbarSet => 'Simple', :width => '650px', :height => '600px') %>
      <%= f.hidden_field :author_id %>
    <% end %>
    <div class="button">
      <%= link_to_function image_tag("valleyer/issue.jpg"), "$('new_article_form').onsubmit()" %>
      <%= link_to_remote image_tag("valleyer/cancel.jpg"),
        :update => "logs_replace",
        :url => valleyers_show_logs_url(:valleyer_id => current_valleyer.id),
        :method => :get
    %>
    </div>
  </div>
</div>
<script type="text/javascript">
  ckditor.replace( 'editor1' );
</script>